﻿package com.snzflash.events 
{
	import flash.events.Event;
	
	/**
	 * События слайдшоу
	 * @author firsoff maxim, tel: +79222345364, skype: maxim.firsoff
	 */
	public class SlideshowEvent extends Event 
	{
		// эффекты появления/скрытия
		public static const EFFECT_SHOW_COMPLETE:String = 'EFFECT_SHOW_COMPLETE';
		public static const EFFECT_HIDE_COMPLETE:String = 'EFFECT_HIDE_COMPLETE';
		
		
		public var data:Object
		public function SlideshowEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null ) 
		{ 
			this.data = data;
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new SlideshowEvent(type, bubbles, cancelable, data);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("SlideshowEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}